package com.huidu.bitrade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huidu.bitrade.entity.ActivityHdzOrder;
import com.huidu.bitrade.util.MessageResult;

import java.math.BigDecimal;

public interface ActivityHdzOrderService extends IService<ActivityHdzOrder> {
    void redeemOrder(Long id);

    /**
     * 获取赎回费率
     *
     * @param time
     * @return
     */
    BigDecimal getConfigRedeem(Long time);

    /**
     * 用户参与质押
     * @param memberId 用户id
     * @param amount 数量
     * @return
     */
    MessageResult pledge(Long memberId, BigDecimal amount,Long activityId);
}
